package org.ht.config;

import java.io.File;

import org.azj.ColumnInfoReader.ColumnInfoReader;
import org.azj.logHelper.LOG;
import org.azj.logHelper.LOG_COMPONENT;
import org.azj.logHelper.LOG_LEVEL;

public class ColumnInfoXmlReader {
	static ColumnInfoReader xmlReader;

	public static ColumnInfoReader getXmlReader() {
		if (xmlReader == null) {
			xmlReader = new ColumnInfoReader();
			try {
				File directory = new File("");
				xmlReader.read(directory.getAbsolutePath()
						+ "\\config\\columntitle.xml");
			} catch (Exception e) {
				LOG.WriteLog(LOG_LEVEL.CRITICAL,
						LOG_COMPONENT.LOG_COMP_INI_FILE_LOADER, "XML文件读取错误");
				e.printStackTrace();
			}
		}
		return xmlReader;
	}
}
